<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
                xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<h1 th:text="这是首页"></h1>
<hr>
<span style="color: red">当前用户：[[${session.user} != null ? ${session.user.userName}]]</span>
<br />
<a href="/user/logout">用户注销</a>
<br /><br />

<div shiro:hasPermission="product:add">
    <a href="/product/toAdd">商品添加</a>
</div>

<div shiro:hasPermission="product:update">
    <a href="/product/toUpdate">商品修改</a>
</div>

<div shiro:hasPermission="product:list">
    <a href="/product/toList">商品列表</a>
</div>

</body>
</html>